﻿using System;
using System.Text;

namespace OpenSunTracker.RestClient
{
    /// <summary>
    /// represents the logging configuration
    /// </summary>
    public class LoggingConfiguration
    {
        #region CTOR

        public LoggingConfiguration()
        {
            Level = 0;
            ToDebug = string.Empty;
            ToFile = string.Empty;
            ToRss = string.Empty;
            Size = 10;
        }
        #endregion

        #region Properties

        /// <summary>
        /// trace level for logging configuration 
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// flag for using the Debug Logging output
        /// </summary>
        public string ToDebug { get; set; }

        /// <summary>
        /// flag for using the File Logging output
        /// </summary>
        public string ToFile { get; set; }

        /// <summary>
        /// flag for using the RSS Logging output
        /// </summary>
        public string ToRss { get; set; }

        /// <summary>
        /// size of the logging message 'bin'
        /// </summary>
        public int Size { get; set; }

        #endregion

        #region Methods

 

        public override string ToString()
        {
            var str = new StringBuilder();
            
            str.AppendLine();
            str.AppendLine("Level: " + Level);
            str.AppendLine("ToDebug: " + ToDebug);
            str.AppendLine("ToFile: " + ToFile);
            str.AppendLine("ToRss" + ToRss);
            str.AppendLine("Size: " + Size);

            return str.ToString();
        }

        #endregion
    }
}
